home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1240 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.4 KB  |  57 lines

  1. Path: news1.ucsd.edu!usenet
  2. From: djohnson@tartarus.ucsd.edu (Darin Johnson)
  3. Newsgroups: comp.edu,comp.lang.c,comp.lang.c++
  4. Subject: Re: C or C++ for a 14-year old?
  5. Date: 09 Jan 1996 14:55:04 -0800
  6. Organization: UCSD Computer Science and Engineering Department
  7. Sender: djohnson@tartarus.ucsd.edu
  8. Message-ID: <qq91jhhtbr.fsf@tartarus.ucsd.edu>
  9. References: <4b30ld$lp2$1@mhafc.production.compuserve.com>
  10.     <w31V7MD4ED1aLz3@dexam.another.gun.de>
  11.     <dschrage.23.152EBB70@indirect.com>
  12.     <4cq6cr$t51@dub-news-svc-1.compuserve.com> <4cqhu3$1quo@news.gate.net>
  13.     <qq4tu6nr5t.fsf@tartarus.ucsd.edu> <4ct1e5$kpc@fountain.mindlink.net>
  14. NNTP-Posting-Host: tartarus.ucsd.edu
  15. In-reply-to: genew@mindlink.bc.ca's message of Tue, 09 Jan 1996 06:15:33 GMT
  16. X-Newsreader: Gnus v5.0
  17.  
  18. genew@mindlink.bc.ca (Gene Wirchenko) writes:
  19. >      for i=1 to 10 ::= for the cases of i from 1 to 10.  English fits
  20. > just fine.
  21.  
  22. I didn't understand it at the time though.  It make sense in
  23. restrospect, because it's very commonly used in abstract
  24. mathematics.
  25.  
  26. >      It's easy?  Well, then it's a pity you got it wrong.  Try
  27. > incrementing i in your loop.  Of course, a for-next loop handles that
  28. > for you.
  29.  
  30. oops, big blush...  Should a for statement be introduced first, only
  31. shown as a shortcut once the alternate methods are learned?  Then
  32. again, in many early basic's, the for statement was the only
  33. structured construct there was.
  34.  
  35. >      Modern BASICs are very Pascal-like.  Remember, this isn't the
  36. > seventies.  Oh, yeah.  Which language requires you to declare labels
  37. > which can only be numeric?  Gimme a "p", gimme...
  38.  
  39. Can you find a book on BASIC that teaches it this way?  How about
  40. example BASIC programs the student can try to emulate?
  41.  
  42. (as far as pascal labels, I needed to use them exactly once)
  43.  
  44. >      CARDIAC: "CARDboard Illustrative Aid to Computing".  Me too!  I'd
  45. > like to find one of the kits.  If anyone knows, please let me know.
  46. > Did you ever figure out how to boot a program using CARDIAC?  It took
  47. > me years to figure it out.
  48.  
  49. No, I never got beyond doing simple math stuff (I didn't even know
  50. what the heck booting was - remember, this was the first computer
  51. I had ever used, I had seen a real one once though).  Generally,
  52. I'd do a long sequence and end up adding the first two digits, then
  53. say "ah, I see the pattern" and mentally do the rest.
  54. -- 
  55. Darin Johnson
  56. djohnson@ucsd.edu --  Strange things are afoot at the circle-K...
  57.